package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BizDicProblemMapper;
import com.ruoyi.system.domain.BizDicProblem;
import com.ruoyi.system.service.IBizDicProblemService;
import com.ruoyi.common.core.text.Convert;

/**
 * 问题字典Service业务层处理
 * 
 * @author gaofeng
 * @date 2025-07-08
 */
@Service
public class BizDicProblemServiceImpl implements IBizDicProblemService 
{
    @Autowired
    private BizDicProblemMapper bizDicProblemMapper;

    /**
     * 查询问题字典
     * 
     * @param sn 问题字典主键
     * @return 问题字典
     */
    @Override
    public BizDicProblem selectBizDicProblemBySn(Long sn)
    {
        return bizDicProblemMapper.selectBizDicProblemBySn(sn);
    }

    /**
     * 查询问题字典列表
     * 
     * @param bizDicProblem 问题字典
     * @return 问题字典
     */
    @Override
    public List<BizDicProblem> selectBizDicProblemList(BizDicProblem bizDicProblem)
    {
        return bizDicProblemMapper.selectBizDicProblemList(bizDicProblem);
    }

    /**
     * 新增问题字典
     * 
     * @param bizDicProblem 问题字典
     * @return 结果
     */
    @Override
    public int insertBizDicProblem(BizDicProblem bizDicProblem)
    {
        return bizDicProblemMapper.insertBizDicProblem(bizDicProblem);
    }

    /**
     * 修改问题字典
     * 
     * @param bizDicProblem 问题字典
     * @return 结果
     */
    @Override
    public int updateBizDicProblem(BizDicProblem bizDicProblem)
    {
        return bizDicProblemMapper.updateBizDicProblem(bizDicProblem);
    }

    /**
     * 批量删除问题字典
     * 
     * @param sns 需要删除的问题字典主键
     * @return 结果
     */
    @Override
    public int deleteBizDicProblemBySns(String sns)
    {
        return bizDicProblemMapper.deleteBizDicProblemBySns(Convert.toStrArray(sns));
    }

    /**
     * 删除问题字典信息
     * 
     * @param sn 问题字典主键
     * @return 结果
     */
    @Override
    public int deleteBizDicProblemBySn(Long sn)
    {
        return bizDicProblemMapper.deleteBizDicProblemBySn(sn);
    }
}
